<html lang="pt-br">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=uft-8" />
        <?php 
			include_once ('header.php');
			include_once ('models/Funcionario.php');
			include_once ('models/Movimentacao.php');			
			
			$f = new Funcionario;			
			$tp = $_GET['tp'];
			$m = new Movimentacao;
		?>
	
    </head>
    <body>
		<div class="conteudo">
			<div class="formulario">
				<form name="movimentacao" method="GET" action="">
					<fieldset disabled>
						<legend>Lan&ccedil;amento do registro</legend>
						Data: <input type="date" value="2013-01-22" />
						Hora: <input type="time" value="01:21" />
					</fieldset>					

					<fieldset <?php if($tp=="chegada") echo 'disabled'; ?>>
						<legend>Sa&iacute;da do ve&iacute;culo</legend>
						Data: <input type="date" value="2013-01-22" />
						Hora: <input type="time" value="01:21" />
						Motorista: 	<select>
									<option value="-1">Selecione um t&eacute;cnico</option>
									<?php
										foreach($f->getList() as $l)
											echo '<option value="'.$l->getID().'">'.$l->getNome().'</option>';
									?>									
									</select>
						Odometro: <input type="number" min="1"/><br>
						Destino: <input type="text" size="140" />			
						
					</fieldset>
					
					<fieldset <?php if($tp=="saida") echo 'disabled'; ?>>
						<legend>Chegada do ve&iacute;culo</legend>
						Data: <input type="date" />
						Hora: <input type="time" />
					</fieldset>					
					
					<input type="submit" value="Salvar" class="botao save" />					
				</form>    
			</div>
		</div>   
    </body>
</html>